// TimeUtility.h: interface for the TimeUtility class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TIMEUTILITY_H__057FC7B8_D564_4CEF_B4BF_C14920BE211E__INCLUDED_)
#define AFX_TIMEUTILITY_H__057FC7B8_D564_4CEF_B4BF_C14920BE211E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class TimeUtility
{
protected:
	TimeUtility();
	virtual ~TimeUtility();

public:
	static int GetNumOfDay(int nYear, int nMonth);
	static bool IsTimeValid(const SYSTEMTIME& time);
	static bool IsMonthsAlternate(const CTime& timeBegin, const CTime& timeEnd);
	static void IncDay(CTime& time);
	static void IncHour(CTime& time);
	static void DecDay(CTime& time);
	static float TimePercentage(const CTime& timeBegin, const CTime& timeEnd, const CTime& time);
	static CTime PercentageTime(const CTime& timeBegin, const CTime& timeEnd, float fPercentage);
	static bool IsZeroOclock(const CTime& time);
	static CString GetTimeSpanDescription(const CTimeSpan& timespan);
};

#endif // !defined(AFX_TIMEUTILITY_H__057FC7B8_D564_4CEF_B4BF_C14920BE211E__INCLUDED_)
